NotEmptyRange

@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
class NotEmptyRange<out T : Comparable<@UnsafeVariance T>>

Represents a range of comparable values that contain at least one value.

Parameters

T

the covariant type of values in this range.

Types

Link copied to clipboard

Class responsible for configuring an instance of NotEmptyRange.

Link copied to clipboard
object Companion

Contains static declarations for the NotEmptyRange type.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the string representation of this range.

Properties

Link copied to clipboard
val end: Bound<T>

The end of this range.

Link copied to clipboard
val start: Bound<T>

The start of this range.

Extensions

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
operator fun <T : Comparable<T>> NotEmptyRange<T>.contains(value: T): Boolean

Returns true if this range contains the given value, or returns false otherwise.